<script class="ng-scope">
$(".dropdowncentermenu").css("display", "none");
$(".dropdowncentermenu2").css("display", "none");
$("#maintitle").html ("资金管理 - 交易历史"); 
$(".navbar-absolute-bottom").css ("display" , "none");
$(".infopanel").css ("display" , "none");
$(".navbar-brand-center").css ("margin-left" , "0px");
checkmargin ();
function detailTrans(x) {
  window.hasBack = window.location.href;
 location.href = x;
}
function changePage(x) {
  transtypeValue = $('select[name=transtype]').val();
  acceptValue = $('select[name=accept]').val();
  beginValue = $('#begin').val();
  endValue = $('#end').val();


  window.location = '#/payment/transfer/'+transtypeValue+'/'+acceptValue+'/'+beginValue+'/'+endValue+'/'+x;
}
</script>
<style class="ng-scope">.has-navbar-top .app-body { padding-top: 72px; }</style>
<div class="scrollable ng-scope">
<div class="scrollable-content member-setting overthrow">

<div>

   <div class="clearfix padding20">
      <div class="fl">
        <img src="__MOBILE__/default/images/mobile/cash/icouser.jpg" width="47" height="46" alt=""></div><div class="fl blue cnbig1 marginleft10 margintop15"><?php echo $_SESSION['member_name']?>
      </div>
      <div class="pull-right">
        中心钱包 : {$info.member_money}|{$info.member_f_money}
      </div>
  </div>

    <div class="settingmenu margintop10 clearfix">
        <a href="#/payment/deposit/1" class="colbtn">
          <img src="__MOBILE__/default/images/mobile/cash/icodeposit.jpg" width="73" height="74" alt="">
            <p class="margintop10">充值</p>

        </a>
        <a href="#/payment/withdrawal" class="colbtn">
          <img src="__MOBILE__/default/images/mobile/cash/icowithdrawal.jpg" width="73" height="74" alt="">
            <p class="margintop10">提款</p>
         
        </a>
        <a href="#/payment/transfer" class="colbtn">
          <img src="__MOBILE__/default/images/mobile/cash/icobalance.jpg" width="73" height="74" alt="">
            <p class="margintop10">交易历史</p>
            <div class="settingarrow"></div>            
        </a>
    </div>
        
      <!-- 个人资料 -->
     <div class="transferReport">
        <div class="col-xs-6"> 
          <div class="textbox clearfix">
            <div class="col-xs-8" style="font-size:18px">交易类型</div>
            <div class="col-xs-4">
                <select name="transtype" id="choose" class="dropdown needsclick" style="font-size:18px">
                  <option value="-1"<?php if($type==0||$type==''){?>selected="selected"<?php }?>>全部</option>
                  <option value="1"<?php if($type==1){?>selected="selected"<?php }?>>充值</option>
                  <option value="2"<?php if($type==2){?>selected="selected"<?php }?>>提款</option>
                </select>
            </div>
          </div>
        </div>
        <div class="col-xs-6"> 
          <div class="textbox clearfix">
            <div class="col-xs-8" style="font-size:18px">单据状态</div>
            <div class="col-xs-4">
                <select name="accept" id="choose" class="dropdown needsclick" style="font-size:18px">
                  <option value="-1"<?php if($status=='-1'||$status==''){?>selected="selected"<?php }?>>全部</option>
                  <option value="0"<?php if($status==0){?>selected="selected"<?php }?>>待处理</option>
                  <option value="1"<?php if($status==1){?>selected="selected"<?php }?>>成功</option>
                  <option value="2"<?php if($status==2){?>selected="selected"<?php }?>>失败</option>
                </select>
            </div>
          </div>
        </div>

        <div class="padding10 clearfix"></div>
        <div class="col-xs-12" style="font-size:20px;text-align:center">起止日期</div>
        <div class="col-xs-12"> 
          <div class="textbox clearfix">
              <div class="col-xs-6" style="font-size:18px">
                <input id="begin" type="date" value="<?php echo $begin?>" class="needsclick">
              </div>
              <div class="col-xs-6" style="font-size:18px">
                <input id="end" type="date" value="<?php echo $end?>" class="needsclick">
              </div>
          </div>
        </div>
        <div class="padding10 clearfix"></div>
        <div class="col-xs-12"> 
          <input class="submitbtn cnbig btnradius needsclick" style="padding: 14px;" type="button" id="btnRecharge3" onclick="javascript:changePage(1)" value="搜索">
        </div>

        <div class="padding10 clearfix"></div>
        <div class="padding10 clearfix"></div>


          <table class="table">
            <thead>
              <tr>
                <!-- <th style="width:10%">时间</th> -->
                <!-- <th style="width:8%">交易类型</th> -->
                <!-- <th style="width:8%">金额</th> -->
                <th style="width:30%">交易描述</th>
                <!-- <th style="width:6%">单据状态</th> -->
                <!-- <th style="width:6%">详情</th> -->
              </tr> 
            </thead>
            <tbody>
			
                  <foreach name="list" item="vo">
               
                <tr>
                  <td>
                    <a href="javascript:detailTrans('#payment/detailtrans/{$vo.id}')">
                    <span class="green"><?php echo date('Y-m-d H:i:s',$vo['add_time'])?></span>                    <span class="pull-right">详情》</span>
                    <br>
                    <strong>交易类型:</strong><span class="blue"> <?php if($vo['type']==1){?>充值 <?php }else{?>提款<?php }?> </span>
                    <strong>金额</strong>:  <span class="blue">{$vo.money}</span>
                    <strong>单据状态</strong>:
					<?php if($vo['status']==1){?> <span class="blue">
                      成功
                      </span><?php }else{?><span class="red">
									未处理
                      </span><?php }?>
                      
                    <br>
                    <?php if($vo['type']==1){?>存入 <?php echo $vo['money'];?> <?php }else{?><?php echo $vo['desc'];?><?php }?> 
                    <br>
                    </a>
                  </td>
              </tr>
			   </foreach>
            </tbody>
          </table>



     </div>
           {$page}

    
</div>

</div>
</div>

